﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp;
using Volo.Abp.Application.Dtos;

namespace YunxSoft.Abp.LanguageManagement;

[Area(LanguageManagementRemoteServiceConsts.ModuleName)]
[RemoteService(Name = LanguageManagementRemoteServiceConsts.RemoteServiceName)]
[Route("api/LanguageManagement/LanguageTexts")]
public class LanguageTextController : LanguageManagementController, ILanguageTextAppService
{
    protected ILanguageTextAppService LanguageTextAppService;

    public LanguageTextController(ILanguageTextAppService languageTextAppService)
    {
        LanguageTextAppService = languageTextAppService;
    }

    [HttpGet]
    public virtual Task<PagedResultDto<LanguageTextDto>> GetListAsync(GetLanguagesTextsInput input)
    {
        return LanguageTextAppService.GetListAsync(input);
    }

    public virtual async Task<LanguageTextDto> GetAsync(string resourceName, string cultureName, string name, string baseCultureName)
    {
        return new LanguageTextDto();
    }

    public virtual async Task UpdateAsync(string resourceName, string cultureName, string name, string value)
    {
    }

    public virtual async Task RestoreToDefaultAsync(string resourceName, string cultureName, string name)
    {
    }
}
